package Demo1;

import java.util.HashMap;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 34255
 * Date: 2024-07-30
 * Time: 19:44
 */
public class Test {
    public static void main(String[] args) {
        HashBucket2<String,Integer> ret = new HashBucket2<>();
        ret.push("12",12);
        ret.push("13",13);
        ret.push("14",14);
        ret.push("15",15);
        ret.push("16",16);
        ret.push("17",17);
        ret.push("18",18);
        System.out.println(ret.getVal("17"));
        System.out.println(ret.getVal("18"));
    }
    public static void main1(String[] args) {
        HashBucket hash = new HashBucket();
        hash.push(11,2);
        System.out.println(hash.getVal(11));
        hash.push(21,2);
        hash.push(31,2);
        hash.push(20,2);
        hash.push(13,2);
        hash.push(14,2);
        hash.push(12,2);
        hash.push(15,2);
        System.out.println(hash.getVal(11));
        return ;
    }
}
